# With Sequel gem
require 'sequel'

# DB = Sequel.sqlite('example.db')

DB = Sequel.connect(
  adapter: 'mysql2', # or 'mysql'
  host: '192.168.3.63',
  database: 'immortal',
  user: 'root',
  password: '123456',
  port: 3306
)

DB.create_table(:fa_user_hostel, comment: "殡仪馆") do
  primary_key :id, auto_increment: true
  String :name, null: false, comment: "名称"
  Bignum :area, null: false, comment: "所在地区"
  TrueClass :status, default: true, comment: "默认启用"
  Integer :update_time, comment: "更新时间"
  Integer :create_time, comment: "创建时间"
end